

package jetbrains.buildServer.server.rest.data.finder;

import jetbrains.buildServer.server.rest.data.util.ItemFilter;
import jetbrains.buildServer.server.rest.data.util.itemholder.ItemHolder;
import org.jetbrains.annotations.NotNull;

public interface LocatorDataBinding<ITEM> {
  @NotNull
  ItemHolder<ITEM> getPrefilteredItems();

  /**
   * Returns filter based on passed locator
   * Should not have side-effects other than marking used locator dimensions
   */
  @NotNull
  ItemFilter<ITEM> getFilter();
}